// pages/wechat/wechat.js
Page({

  data: {

  },

 
  onLoad: function (options) {

  },
      getfile(){
       wx.chooseMessageFile({
         count: 1,
         type:'file',
         success:(res)=>{
           console.log(res);
           let tempFiles= res.tempFiles[0].path
           wx.saveFile({
             tempFilePath: tempFiles,
             success:(res3)=>{
               console.log(res3);
               
              let tem= res3.savedFilePath
              console.log(tem);
              
              wx.uploadFile({
                filePath: tem,
                name: res.tempFiles[0].name,
                url: "https://zujieba.com/Api/upload/upload_file.html",
                success:(res2)=>{
                  console.log(res2);
                  
                }
              })
               
             }
           })
         




        
           
         }
       })
      }




})